package com.beg.cant.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.lang.Long;
@Data
@Builder
@TableName("users")
public class User {
    @TableId(type = IdType.AUTO)
    @NotNull
    private Long id;
    @Schema(description = "用户名")
    private String name;
    @Schema(description = "头像")

    private String image;
    @Schema(description = "余额")

    private Double total;
    @Schema(description = "openid")
    private String openid;
    @Schema(description = "创建时间")

    private LocalDateTime createdAt;
}
